<#include "macro_.ftl">
package ${packageCode}.${moduleMapperKey}.po;

<#list entityMapper.fieldMapperMap?values as fieldMapper>
	<#if fieldMapper.typeCode == 'Date'>
import java.util.Date;

		<#break>
	</#if>
</#list>
<#list entityMapper.fieldMapperMap?values as fieldMapper>
	<#if fieldMapper.pkName! != ''>
import org.springframework.data.annotation.Id;

		<#break>
	</#if>
</#list>

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import com.cardone.common.annotations.BeginDate;
import com.cardone.common.annotations.EndDate;

/**
 * <@defaultIfBlank str="${entityMapper.remarks!}" defaultSt="${entityMapper.code!}"/>
 * 
 * @author ${author!'yaoht'}
 * 
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class ${entityMapper.code} implements java.io.Serializable {
	/**
	 * 版本号
	 */
	private static final long serialVersionUID = ${serialVersionUID!'1'}L;
<#list entityMapper.fieldMapperMap?values as fieldMapper>

	/**
    * <@defaultIfBlank str="${fieldMapper.remarks!}" defaultSt="${fieldMapper.code!}"/>
    */
<#if fieldMapper.pkName! != ''>
	@Id
</#if>
<#if fieldMapper.code! == 'beginDate'>
	@BeginDate
</#if>
<#if fieldMapper.code! == 'endDate'>
	@EndDate
</#if>
	private ${fieldMapper.typeCode!'String'} ${fieldMapper.code};
</#list>
}